package com.tanhua.server.controller;


import com.itheima.model.vo.HuanXinUserVo;
import com.itheima.model.vo.UserInfoVo;
import com.tanhua.dubbo.api.UserApi;
import com.tanhua.server.service.HuanXinService;
import com.tanhua.server.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/huanxin")
public class HuanXinController {

    @Autowired
    private HuanXinService huanXinService;

    @Autowired
    private UserInfoService userInfoService;

    /**
     * 查询环信的账号密码
     */
    @GetMapping("/user")
    public ResponseEntity user() {
       HuanXinUserVo vo = huanXinService.findHuanXinUser();
       return ResponseEntity.ok(vo);
    }



}
